﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmListSeries.aspx.cs" Inherits="Box.Cliente.Logistica.SerieDocumento.frmListSeries" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="panel panel-primary">
    	<div class="panel-heading">
    	    Series Documentos
            <a href="frmSeries.aspx?acc=new" class="btn btn-success" style=" text-decoration:none; margin: auto;">Nueva Serie</a>
    	</div>
    	<div class="panel-body">
            <table>
                <tr>
                    <td><label>Criterio</label></td>
                </tr>
            </table>
            <br />
            <asp:ListView runat="server" SelectMethod="GetSeries" ItemType="Box.Entities.SerieComprobante">
                <LayoutTemplate>
                    <table class="table table-responsive table-striped">
                        <thead>
                              <tr>
                                  <th>#</th>
                                  <th>Serie</th>
                                  <th>Inicio Correlativo</th>
                                  <th>Acción</th>
                              </tr>  
                        </thead>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server"/>
                        </tbody>                  
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td><%# Item.Id %></td>
                        <td><%# Item.SerieBoleta %></td>
                        <td><%# Item.IniCorrelativoBoleta %></td>
                        <td>
                            <a href="frmSeries.aspx?acc=editar&id= <%# Item.Id %>" class="glyphicon glyphicon-pencil label label-warning">Editar</a>
                            <a href="frmListSeries.aspx?acc=eliminar&id= <%# Item.Id %>" class="glyphicon glyphicon-remove label label-danger"
                                                                onclick="return confirm('Desea Elininar a: <%# Item.SerieBoleta%>');">Eliminar </a>
                        </td>
                    </tr>
                </ItemTemplate>
                 <EmptyDataTemplate>
                                    <h3 class="message-error" align="center"><b>No existen Series con el criterio de búsqueda.</b></h3>
                 </EmptyDataTemplate>
            </asp:ListView>
    	</div>    	
    </div>
</asp:Content>
